package com.kkb.utils;

public class SMSUtil {

    /**
     * 快递录入时，手机验证码发送
     * @param phone 手机号
     * @param code 验证码
     */
    public static void Send(String phone , String code){
        System.out.println("------------------------------");
        System.out.println("手机号：" + phone);
        System.out.println("亲爱的快递e栈用户：");
        System.out.println("您有一个快递到达快递e栈，请及时取件 ");
        System.out.println("取件码："+ code +"  该取件码长期有效");
        System.out.println("------------------------------");
    }

    public static boolean sendLoginCode(String phone , String code){
        System.out.println("==============================");
        System.out.println("验证码："+code);
        System.out.println("[快递e栈]"+ code +"短信登录验证码，5分钟内有效，请勿泄漏");
        System.out.println("================================");
        return true;
    }

    public static void main(String[] args) {
        sendLoginCode("18838466848","788599");
    }
}
